import Http from "../utils/Http";



class Category {
    static getVategoryList(){
        return Http.request({
            url: '/v1/category',
            method: 'GET'
        })
    }

    static async getCategoryListWithAll(){
        const categoryList = await Category.getVategoryList();
        categoryList.unshift({"id": 0, "name": "全部"});
        return categoryList
    }
}


export default Category